package org.firestorm.traficforecast.database;

import java.util.ArrayList;

public class MyNode {
	private String id;
	private String name;
	private double lat;
	private double lon;
	private ArrayList<Integer> nextNode; // List id of next node in map
        
	public static void main(String[] args) {
		int tmp = 75216777;
		System.out.println(tmp);
	}

	public MyNode() {
	}

	public MyNode(String id, String name, double lat, double lon, String nextNode) {
		this.id = id;
		this.name = name;
		this.lat = lat;
		this.lon = lon;
		if (nextNode.length() > 0) {
			String[] tmp = nextNode.split(",");
			this.nextNode = new ArrayList<Integer>();
			for (int i = 0; i < tmp.length; i++) {
				this.nextNode.add(Integer.parseInt(tmp[i]));
			}
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getLon() {
		return lon;
	}

	public void setLon(double lon) {
		this.lon = lon;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public ArrayList<Integer> getNextNode() {
		return nextNode;
	}

	public void setNextNode(ArrayList<Integer> nextNode) {
		this.nextNode = nextNode;
	}
}
